package com.snopy.designPattern.structure.flyweight.impl;

import com.snopy.designPattern.structure.flyweight.inter.RaceCar;
import lombok.extern.slf4j.Slf4j;

/**
 * @author snopy
 * @version 1.0.0
 * @classname MidgetCar
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/03 16:23
 */
@Slf4j
public class MidgetCar extends RaceCar {
    public static int num;

    public MidgetCar() {
        num++;
    }

    @Override
    public void moveCar(int currentX, int currentY, int newX, int newY) {
        log.info("New location of {}+is X{},T{}",this.name,newX,newY);
    }
}
